package com.fuyin.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yuanxilan (yuanxilan@keep.com)
 * @Description
 * @date 2021年10月23日 3:51 下午
 * @since
 */
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 2027749282401859877L;
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("爱好")
    @Deprecated
    private String hobby;

    @ApiModelProperty("邮箱")
    private String email;

    /**
     * 0表示正常，-1表示无效
     */
    @ApiModelProperty("状态")
    private Integer state;

    /**
     * 0表示用户，1表示管理员，2表示超级管理员
     */
    @ApiModelProperty("类别，0表示用户，1表示管理员，2表示超级管理员")
    private Integer type;

    private Date createTime;

    private Date updateTime;

    public User() {
    }

//    public User(String userName, String password, int state, int type) {
//        this.userName = userName;
//        this.password = password;
//        this.state = state;
//        this.type = type;
//    }


    public User(String userName, String password, String email, int state, int type) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.state = state;
        this.type = type;
    }
}
